package com.zjitc.fmmal.api.controller;

import com.zjitc.fmmal.service.UserService;
import com.zjitc.fmmal.vo.ResultVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@ResponseBody
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @RequestMapping("/login")
    public ResultVO login(String name,String password){
        return userService.checkLogin(name,password);
    }


}
